package main

import (
	"github.com/astaxie/beego/logs"
)

var log *logs.BeeLogger

/*
日志级别
	LevelTrace = iota
	LevelDebug
	LevelInfo
	LevelWarn
	LevelError
	LevelCritical
*/
//初始化日志函数
func InitLog() {
	log = logs.NewLogger(100)
	log.SetLogger("console", "")
	log.SetLogger("file", `{"filename":"./logs/client.log","rotate":true,"maxdays":2}`)
}
